const Layout = () => import('@/layout/index.vue')
//导入组件
const shop = () => import('@/views/shop/shop.vue')

//注意事项：必须保证路由的name属性值是唯一的
export default [
  {
    path: '/shopping',
    component: Layout,
    name: 'shopping',
    meta: {
      title: '商品管理',
    },
    icon: 'Location',
    children: [
      {
        path: '/shop',
        name: 'shop',
        component: shop,
        meta: {
          title: '商品类别',
        },
      },
      {
        path: '/shang',
        name: 'shang',
        component: shop,
        meta: {
          title: '商品',
        },
      },
    ],
  },
]
